package com.ecut.property_project.service.base;

import com.ecut.property_project.mapper.base.BaseDeptMapper;
import com.ecut.property_project.model.base.BaseDept;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseDeptService{

    @Resource
    private BaseDeptMapper baseDeptMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return baseDeptMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(BaseDept record) {
        return baseDeptMapper.insert(record);
    }

    
    public int insertSelective(BaseDept record) {
        return baseDeptMapper.insertSelective(record);
    }

    public List<BaseDept> selectAll(){
        return baseDeptMapper.selectAll();
    }

    public List<BaseDept> selectByPage(Integer page, Integer pageSize){return baseDeptMapper.selectByPage(page,pageSize);}

    public BaseDept selectByPrimaryKey(Integer id) {
        return baseDeptMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(BaseDept record) {
        return baseDeptMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(BaseDept record) {
        return baseDeptMapper.updateByPrimaryKey(record);
    }

}
